package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.invoicings.entity.OutboundDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OutboundDetailMapper extends BaseMapper<OutboundDetail> {

    /**
     * 根据出库单id获取多个出库单明细
     * @param id
     * @return
     */
    List<OutboundDetail> selectOutboundDetailByIds(Integer id);

    /**
     * 根据id获取出库单明细
     * @param id
     * @return
     */
    OutboundDetail selectOutboundDetailById(Integer id);

    /**
     * 查询所有出库单明细
     * @param map
     * @return
     */
    List<OutboundDetail> selectOutboundDetailAll(Map<String, Object> map);

}
